package com.zidian.leader.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;

import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.StringCallback;
import com.zidian.leader.R;
import com.zidian.leader.adapter.StudentStatisticsPagerAdapter;
import com.zidian.leader.api.Constant;
import com.zidian.leader.common.activity.MySwipeBackActivity;
import com.zidian.leader.common.util.HawkUtils;
import com.zidian.leader.common.util.StringConstants;

import java.util.HashMap;
import java.util.Map;

import butterknife.Bind;
import okhttp3.Call;

/**
 * 学员行为
 * Created by GongCheng on 2016/10/24 0024.
 */

public class StudentStatisticsActivity extends MySwipeBackActivity {

    @Bind(R.id.student_statistics_vp)
    ViewPager studentStatisticsVp;
    @Bind(R.id.student_statistics_tl)
    TabLayout studentStatisticsTl;

    private StudentStatisticsPagerAdapter pagerAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
    }

    @Override
    protected int getLayout() {
        return R.layout.activity_student_statistics;
    }

    private void initView() {
        //Toolbar
        actionBar.setTitle(R.string.student_statistics);
        actionBar.setHomeAsUpIndicator(R.drawable.ic_arrow_back_24dp);
        pagerAdapter = new StudentStatisticsPagerAdapter(getSupportFragmentManager());
        studentStatisticsVp.setAdapter(pagerAdapter);
        studentStatisticsTl.setupWithViewPager(studentStatisticsVp);

    }
}
